package jk.wrapper.config;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class WrapperConfiguration {
	private String site;
	private Map<String, PropertyMapConfig> propMapConfigMap;
	private List<ResultMapConfig> retMapConfig = new ArrayList<ResultMapConfig>();
	
	public WrapperConfiguration() {
		propMapConfigMap = new HashMap<String, PropertyMapConfig>();
	}
	
	public String getSite() {
		return site;
	}

	public void setSite(String site) {
		this.site = site;
	}
	
	/**
	 * Get All Property Tag Mapping set.
	 * @return
	 */
	public Map<String, PropertyMapConfig> getPropertyMapConfig() {
		return propMapConfigMap;
	}
	
	/**
	 * According to an PropertyMapConfig object propertyId to be.
	 * @param id
	 * @return
	 */
	public PropertyMapConfig getPropertyMapConfigObj(String id) {
		return propMapConfigMap.get(id);
	}
	
	/**
	 * Put PropertyMapConfig object to map.  
	 * @param id property id
	 * @param propMapConfig property tag object
	 */
	public void putPropertyMapConfog(String id, PropertyMapConfig propMapConfig) {
		propMapConfigMap.put(id, propMapConfig);
	}
	
	public void addResultMapConfig(ResultMapConfig retMapConfig) {
		this.retMapConfig.add(retMapConfig);
	}
	
	public List<ResultMapConfig> getResultMapConfig() {
		return this.retMapConfig;
	}
	
}
